﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.Compression;
using System.IO;

namespace Talk.Net
{
	public class StreamManager
	{
		public static DeflateStream SendStream(Stream stream)
		{
			DeflateStream outgoing = new DeflateStream(stream, CompressionMode.Compress);
			return outgoing;
		}

		public static Stream ReceiveStream(Stream stream)
		{
			DeflateStream incoming = new DeflateStream(stream, CompressionMode.Decompress);
			return incoming;
		}
	}
}
